import { getCompanyID, getUserDepID, getUserID } from '@/utils';

export const AssetacquisitionTabSwitch = (curRes) => {
  if (curRes?.['/assetInventoryDifference/createCompanyID']) {
    return {
      createCompanyID: getCompanyID(),
      params: 'createCompanyID',
    };
  } else if (curRes?.['/assetInventoryDifference/createDepartmentID']) {
    return {
      createDepartmentID: getUserDepID(),
      params: 'createDepartmentID',
    };
  } else if (curRes?.['/assetInventoryDifference/createrID']) {
    return {
      createrID: getUserID(),
      params: 'createrID',
    };
  } else {
    return {};
  }
};

export const inventoryerSwitch = (curRes) => {
  if (curRes?.['/assetInventoryDifference/createrID']) {
    return {
      inventoryerID: getUserID(),
      params: 'inventoryerID',
    };
  } else {
    return {};
  }
};
